package resphelper

import (
	"yundian/internel/app/helper/resphelper/memberresp"
	"yundian/internel/app/models/devices"
	"yundian/internel/app/models/dividendslog"
	"yundian/internel/app/models/orders"
	"yundian/internel/app/models/prices"
)

// 订单详情
type OrderInfoRes struct {
	orders.OrderModel

	// 当前使用时长
	UseTime int64 `gorm:"-" json:"useTime"`
	// 当前产生费用
	UseMoney int64 `gorm:"-" json:"useMoney"`
	// 预计结束时长
	FetureTime int64 `gorm:"-" json:"fetureTime"`
	// 设备信息
	DeviceInfo *devices.DeviceType `gorm:"-" json:"deviceInfo"`
	// 分成信息
	DividendsList []dividendslog.ProfitInfo `gorm:"-" json:"dividendsList"`
	// 价格信息
	PriceInfo *prices.PriceModel `gorm:"-" json:"priceInfo"`

	Balance       string      `gorm:"-" json:"balance"`             // 用户余额总额
	OrderTotal    string      `gorm:"-" json:"orderTotal"`              // 订单入余额总额
	IsCash        uint8       `gorm:"-" json:"isCash"`              // 1 可回滚  2不可回滚

	MemberPclBalanceList  []*memberresp.MemberPclBalanceRes  `gorm:"-" json:"memberPclBalanceList"`  // 余额变更列表
}
